﻿using System.Windows;

namespace WPFDemo
{
    /// <summary>
    /// ComboxDemo.xaml 的交互逻辑
    /// </summary>
    public partial class ComboxDemo : Window
    {
        public ComboxDemo()
        {
            InitializeComponent();

            List<CbbData> dataList = new List<CbbData>();
            dataList.Add(new CbbData { Id = 0, Name = "请选择" });
            for (int i = 1; i < 20; i++)
            {
                dataList.Add(new CbbData { Id = i, Name = "aaa" + i });
            }
            MyCombox.ItemsSource = dataList;
        }
    }
}
